//
//  IMJobBaseInfoModel.m
//  Btpin
//
//  Created by Vic on 2019/4/23.
//  Copyright © 2019 Vic. All rights reserved.
//

#import "IMJobBaseInfoModel.h"

@implementation IMJobBaseInfoModel

- (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *,id> *)keyedValues {
    self.id = [UIToolsControl dataAnalysis:keyedValues[@"id"]];
    self.title = [UIToolsControl dataAnalysis:keyedValues[@"title"]];
    self.district_cn = [UIToolsControl dataAnalysis:keyedValues[@"district_cn"]];
    self.experience_cn = [UIToolsControl dataAnalysis:keyedValues[@"experience_cn"]];
    self.education_cn = [UIToolsControl dataAnalysis:keyedValues[@"education_cn"]];
    self.wage_cn = [UIToolsControl dataAnalysis:keyedValues[@"wage_cn"]];
    self.companyInfoModel = [[IMCompanyInfoModel alloc] init];
    [self.companyInfoModel setValuesForKeysWithDictionary:keyedValues[@"company_info"]];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (id)copyWithZone:(NSZone *)zone {
    IMJobBaseInfoModel *model = [[[self class] allocWithZone:zone] init];
    model.id = self.id;
    model.title = self.title;
    model.district_cn = self.district_cn;
    model.experience_cn = self.experience_cn;
    model.education_cn = self.education_cn;
    model.wage_cn = self.wage_cn;
    model.companyInfoModel = [[IMCompanyInfoModel alloc] init];
    model.companyInfoModel = [self.companyInfoModel copy];
    
    return model;
}

@end

@implementation IMCompanyInfoModel

- (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *,id> *)keyedValues {
    self.name = [UIToolsControl dataAnalysis:keyedValues[@"name"]];
    self.finance_cn = [UIToolsControl dataAnalysis:keyedValues[@"finance_cn"]];
    self.scale_cn = [UIToolsControl dataAnalysis:keyedValues[@"scale_cn"]];
    self.trade_cn = [UIToolsControl dataAnalysis:keyedValues[@"trade_cn"]];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (id)copyWithZone:(NSZone *)zone {
    IMCompanyInfoModel *model = [[[self class] allocWithZone:zone] init];
    model.name = self.name;
    model.finance_cn = self.finance_cn;
    model.scale_cn = self.scale_cn;
    model.trade_cn = self.trade_cn;
    
    return model;
}

@end
